package objectdemo;

interface InterfDemo
{
	public abstract void inter();
}

class InterDemoImpl implements InterfDemo
{
	public void inter()
	{
		System.out.println("nihao");
	}
}
public class ObjDemo02
{

	public static void main(String[] args)
	{
//		InterfDemo i = new InterDemoImpl();
//		Object o = i;
//		InterfDemo ii = (InterDemoImpl)o;
//		ii.inter();
	   new InterfDemo() {
		   {
			   
		   }

		public void inter() {
			System.out.print("lzq");
		}
	   }.inter();
	}
	
}
